<?php
namespace App\Jobs;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Support\Facades\Log;

/**
 * 客户充值日志记录队列
 *
 * @author WangBin
 * @date
 */
class CustomerRechargeLogJob implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable;

    private $customerId; // 客户 Id
    private $amount; // 充值金额

    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct(int $customerId, $amount)
    {
        $this->customerId = $customerId;
        $this->amount = $amount;
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        Log::debug("[队列][客户充值记录] 开始执行...");
        Log::debug("[队列][客户充值记录] 执行结束...");
    }
}
